treatment of capital gains